package org.example.finalsecurities.service.impl;

import org.example.finalsecurities.entity.CrawlerLog;
import org.example.finalsecurities.mapper.CrawlerLogMapper;
import org.example.finalsecurities.service.CrawlerLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 服务实现类
 * 功能：
 * 1. 保存爬虫日志
 *
 * @author : [CaiJianbin]
 * @version : [v1.0]
 */
@Service
public class CrawlerLogServiceImpl implements CrawlerLogService {

    @Autowired
    private CrawlerLogMapper crawlerLogMapper;

    /**
     * @author CaiJianbin
     * @description 保存爬虫日志
     * @param log
     * @return void
     */
    @Override
    public void saveLog(CrawlerLog log) {
        crawlerLogMapper.insert(log);
    }
}